package com.sy.jtamqconsumer.service;

import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sy.jtamqconsumer.dao.TestS1Reposity;
import com.sy.jtamqconsumer.pojo.TestS1;

@Service
public class TestService {
	@Autowired
	private TestS1Reposity testS1Reposity;

	public TestS1 getTest(int i) {
		Optional<TestS1> testS1 = testS1Reposity.findById(i);
		return testS1.orElse(null);
	}

}
